package action;

import dao.GoddessDao;
import model.Goddess;


import java.util.List;
import java.util.Map;

public class GoddessAction {

    private GoddessDao goddessDao;

    public GoddessAction(){
         goddessDao = new GoddessDao();
    }

    public List<Goddess> query(List<Map<String,Object> >parma){
        return goddessDao.query(parma);
    }

    public boolean addGoddess(Goddess goddess){
        return goddessDao.addGoddess(goddess);
    }

    public boolean updateGoddess(Goddess goddess){
        return goddessDao.updateGoddess(goddess);
    }

    public Goddess get(int id){
        return goddessDao.get(id);
    }


}
